From 972656054ca0d899cb5fd81d1a105a9e90954e56 Mon Sep 17 00:00:00 2001 From: Ewan Mellor Date: Fri, 5 Jan 2007 12:32:40 +0000 Subject: [PATCH] Fix missing import, and a small tidyup. Signed-off-by: Ewan Mellor --- tools/python/xen/xm/create.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/python/xen/xm/create.py b/tools/python/xen/xm/create.py index 140b6f7749..1726979aaa 100644 --- a/tools/python/xen/xm/create.py +++ b/tools/python/xen/xm/create.py @@ -823,7 +823,7 @@ def preprocess_ioports(vals): if len(d) == 1: d.append(d[0]) # Components are in hex: add hex specifier. - hexd = map(lambda v: '0x'+v, d) + hexd = ['0x' + x for x in d] ioports.append(hexd) vals.ioports = ioports @@ -1176,6 +1176,7 @@ def config_security_check(config, verbose): try: domain_label = security.ssidref2label(security.NULL_SSIDREF) except: + import traceback traceback.print_exc(limit=1) return 0 domain_policy = 'NULL' -- 2.30.2